<html>
  <head>
    <meta name="layout" content="main" />
    <title>Edit Employee Infomation</title>
  </head>
  <body>
    <h1>Edit Employee Infomation</h1>
  <g:form controller ="user" action="update" id="${userInstance?.id}" enctype="multipart/form-data">
    <div class="dialog">
      <table>
        <tbody>
          
          <tr class="prop">
            <td valign="top" class="name">
              <label for="name">Gender:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean:userInstance,field:'gender','errors')}">
        <g:select name="gender" from="${['male','female']}" value="${userInstance?.gender}"/>
        </td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name">
            <label for="name">Salary:</label>
          </td>
          <td valign="top" class="value ${hasErrors(bean:userInstance,field:'salary','errors')}">
        <g:textField name="salary" value="${userInstance?.salary}" />
        </td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name">
            <label for="name">Description:</label>
          </td>
          <td valign="top" class="value ${hasErrors(bean:userInstance,field:'description','errors')}">
        <g:textArea name="description" value="${userInstance?.description}" />
        </td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name">
            <label for="name">Birthday:</label>
          </td>
          <td valign="top" class="value ${hasErrors(bean:userInstance,field:'birthday','errors')}">
        <g:datePicker name="birthday" value="${userInstance?.birthday}" />
        </td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name">
            <label for="name">Joinday:</label>
          </td>
          <td valign="top" class="value ${hasErrors(bean:userInstance,field:'joinday','errors')}">
        <g:datePicker name="joinday" value="${userInstance?.joinday}" />
        </td>
        </tr>

        </tbody>
      </table>
    </div>
    <div class="buttons">
      <span class="button"><input class="update" type="submit" value="Update" /></span>
    </div>
  </g:form>
</body>
</html>
